package com.neudu.yyzx_service.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neudu.yyzx_service.pojo.Customer;
import com.neudu.yyzx_service.pojo.Outward;
import com.neudu.yyzx_service.service.CustomerService;
import com.neudu.yyzx_service.mapper.CustomerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Administrator
* @description 针对表【customer】的数据库操作Service实现
* @createDate 2025-04-09 09:22:18
*/
@Service
public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer>
    implements CustomerService{
    @Autowired
    private CustomerMapper customerMapper;
    public List<Customer> get_all_name(){
        return customerMapper.get_all_name();
    }

    public List<Customer> get_all_customers(){
        return customerMapper.get_all_customers();
    }

    public Integer removeOne(Integer customerid){
        return customerMapper.removeOne(customerid);
    }

    @Override
    public List<Customer> get_all() {
        return customerMapper.get_all();
    }

    @Override
    public Integer addOne(Customer customer) {
        return customerMapper.addOne(customer);
    }

    @Override
    public Integer updateCustomer(Customer customer) {
        return customerMapper.updateCustomer(customer);
    }

    public List<Customer> get_iner_names(){
        return customerMapper.get_iner_names();
    }

    public Integer modifyOutStatus(String customerName){
        return customerMapper.modifyOutStatus(customerName);
    }

    public Integer isback(Outward outward){
        return customerMapper.isback(outward);
    }

    @Override
    public Integer updaatestatus(Customer customer) {
        return customerMapper.updaatestatus(customer);
    }

    @Override
    public List<Customer> selectbycustomername(Customer customer) {
        return customerMapper.selectbycustomername(customer);
    }
}




